package com.smart.lx.decorator;

/**
 * 功能描述: <br>
 * 〈煎饼〉
 *
 * @since: 1.0.0
 * @Author:abc
 * @Date: 2019/4/6
 */
public class Jianbing extends IJianbing {
    private double price = 8;
    private String own = "一张煎饼";

    public void create(){
        System.out.println("制作煎饼!");
        System.out.println(own);
        System.out.println("价格: " + price);
    }

    @Override
    public double getPrice() {
        return price;
    }

    @Override
    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String getOwn() {
        return own;
    }

    @Override
    public void setOwn(String own) {
        this.own = own;
    }
}
